package com.javafactroy.kunlong.data.entity;

import lombok.Data;
import com.javafactroy.kunlong.base.dto.TQueryParam;
import com.javafactroy.kunlong.client.feign.dto.PageInfoDto;
import javax.persistence.Column;
import javax.persistence.*;
//import javax.persistence.Id;
import lombok.experimental.Accessors;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import com.alibaba.excel.annotation.write.style.ColumnWidth;

import io.swagger.annotations.ApiModelProperty;
/**
*  @author raymond.lei@163.com
*  @date   2023-11-30 11:22:46
*  @file   DrUserGroupApiEntity.java
*  @company com.javafactroy.kunlong
*
*/
@Data
@Table(name="dr_user_group")
@ApiModel("")
@Accessors(chain = true)
@ExcelIgnoreUnannotated
@ColumnWidth(18)
public class DrUserGroupApiEntity   extends PageInfoDto {
    private static final long serialVersionUID = 1L; //一会就说这个是做什么的

    public final static String pkeyField = "id";
    public final static String pkeyProp  = "id";
    @Data
    public static class DrUserGroupQueryParam extends TQueryParam<DrUserGroupApiEntity> {
        public DrUserGroupQueryParam() {
            param = new DrUserGroupApiEntity();
        }
    }

    		// id dataType:bigint
		@ApiModelProperty(name="")
		@ExcelProperty("id")
		@Column(name="id")
		@Id
		@GeneratedValue(strategy = GenerationType.IDENTITY,generator = "Mysql")
		Long  id;

		// user_id dataType:bigint
		@ApiModelProperty(name="")
		@ExcelProperty("user_id")
		@Column(name="user_id")
		Long  userId;

		// group_id dataType:bigint
		@ApiModelProperty(name="")
		@ExcelProperty("group_id")
		@Column(name="group_id")
		Long  groupId;



}